﻿using OASystem.BLL.IService;
using OASystem.DAL;
using OASystem.Model;
using OASystem.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace OASystem.BLL.Service
{
    //记得修改Userinfo成自己要使用的实体
    public class Access_listService : BaseRepository<Userinfo>, IAccess_listService
    {
        public ResponseResult AnnouncementByMore(int departId)
        {
            ResponseResult responseResult = new ResponseResult();
            //查询所有的departId下的人
            Expression<Func<Userinfo, bool>> whereLambda = a => a.DepartId == departId;
            //查询部门下的所有人
            responseResult.data = QueryList(whereLambda);
            return responseResult;
        }
       

    }
}
